package com.jianyi.system.service.user.impl;

import com.jianyi.system.dao.user.UserDao;
import com.jianyi.system.model.entity.SysUser;
import com.jianyi.system.service.user.UserService;
import org.hibernate.sql.ordering.antlr.OrderingSpecification;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.querydsl.QPageRequest;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service("userService")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    @Transactional
    @Override
    public SysUser findUser(String userName) {
        return userDao.findByUserName(userName);
    }
    @Transactional
    @Override
    public SysUser customMethod(){
        return userDao.customMethod();
    }

    @Override
    public List<SysUser> ttest() {

        return userDao.tttest();
    }

}
